package com.rgp.serviceverificationcode.controller;

import com.alibaba.fastjson.JSON;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-10 21:10
 */
@RestController
public class TestController {

    @GetMapping("test")
    public String test(){
        HashMap<String, String> map = new HashMap<>();
        map.put("test","success");
        String json = JSON.toJSONString(map);
        return json;
    }
}
